[NTG-context] Re: Struggling with the distance and right margin text

2024-03-22 Thread Wolfgang Schuster
             backspace=2.9cm,              inleftmargin=0cm,width=4cm] You can shorten the layout to \setuplayout [backspace=2.9cm, width=4cm] because inleftmargin and inrightmargin don't exist as layout settings but there is leftmargin and rightmargin without the leading *in*. You can add

[NTG-context] Re: Struggling with the distance and right margin text

2024-03-22 Thread Ursula Hermann
Dear Pablo, Many thanks for your example. Sorry for writing so late. At least I found out, how it works for me . This is the best way. \setuppapersize[A8,landscape] \setupbodyfont[termes, 12.50pt] \setuplayout[inrightmargin=5.1cm backspace=2.9cm, inleftmargin=0cm

Re: [NTG-context] Enumeration numbering in the left margin

2021-11-20 Thread Wolfgang Schuster via ntg-context
, way=bysection] I actually want to (flush) left align the enumeration's number inside the left margin and give it a blue color. But even if I have \setupmargindata[inleftmargin][color=bblue4,align=flushleft] there is no alignment, no color. However, if I do \setupenumeration[verse

Re: [NTG-context] Enumeration numbering in the left margin

2021-11-20 Thread kauśika via ntg-context
y=bysection] > > I actually want to (flush) left align the enumeration's number inside the > left margin and give it a blue color. But even if I have >\setupmargindata[inleftmargin][color=bblue4,align=flushleft] > there is no alignment, no color. > > However, if I do

[NTG-context] Enumeration numbering in the left margin

2021-11-19 Thread kauśika via ntg-context
color. But even if I have \setupmargindata[inleftmargin][color=bblue4,align=flushleft] there is no alignment, no color. However, if I do \setupenumeration[verse] [alternative=leftmargin, text=, width=\leftmarginwidth, headcolor=bblue4, distance=0em, way=bysection] I am able

Re: [NTG-context] Formulanumbers in margin

2021-03-23 Thread Adam Reviczky
e=Cow] \externalfigure[cow] \stopplacefigure > > \define[1]\MyFormulaNumber{\inleftmargin{#1}} > \setupformula[numbercommand=\MyFormulaNumber] > > \inleftmargin{Left Margin Text} > \inrightmargin{Right Margin Text} > > \startplaceformula[reference=eq1] \startformula c^2 =

Re: [NTG-context] Formulanumbers in margin

2021-03-21 Thread Adam Reviczky
\setupcaption[figure][location={rightmargin}] \startplacefigure[title=Cow] \externalfigure[cow] \stopplacefigure \define[1]\MyFormulaNumber{\inleftmargin{#1}} \setupformula[numbercommand=\MyFormulaNumber] \inleftmargin{Left Margin Text} \inrightmargin{Right Margin Text} \startplaceformula

Re: [NTG-context] (again) inmargin attachments in notes

2019-07-30 Thread Pablo Rodriguez
On 7/29/19 10:27 PM, Hans Hagen wrote: > On 7/29/2019 9:33 PM, Pablo Rodriguez wrote: > [...] > b\footnote{x\inleftmargin[scope=local]{\attachment[location=high,file=i-context.pdf]}} Many thanks for your reply, Hans. I didn’t know that placing margin data in notes was so complex. Ma

Re: [NTG-context] (again) inmargin attachments in notes

2019-07-29 Thread Hans Hagen
\footnote{\attachment[file=i-context.pdf]} \stoptext Inmargin attachment from notes aren’t shown in Acrobat nor displayed in margin. Files are embedded. b\footnote{x\inleftmargin[scope=local]{\attachment[location=high,file=i-context.pdf

Re: [NTG-context] small abstracts in table of contents?

2014-11-24 Thread Hans Hagen
[chapter,chaptertext] \chapter{This is a chapter} \writetolist[chaptertext]{}{This is a small description of this chapter: \input ward } \input knuth.tex \stoptext The mkiv way: \starttext \unexpanded\def\ShowSummary#1#2#3% {\inleftmargin{#1}\structurelistuservariable{summary}\blank

Re: [NTG-context] Possible bug with new \start ... \stop way for title, chapter, subject, etc.?

2013-06-29 Thread Wolfgang Schuster
] \inleftmargin{\headtextcontent} \stopsetups \setuphead [section] [alternative=head:inleftmargin, style=bold, color=red, insidesection=\ignorespaces, distance=0pt] \showframe \starttext \section{Knuth} \input knuth \startsection[title={Tufte}] \input knuth \stopsection \stoptext

[NTG-context] [typo-mar.mkiv] \dosetupstrut - \setupstrut

2012-09-22 Thread Philipp Gesang
[inleftmargin][strut=no] \inleftmargin{\ifvmode yes\else no\fi} bar \stoptext \endinput ··· Best regards Philipp -- () ascii ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments

[NTG-context] bad argument #1 to 'gsub'

2011-06-23 Thread Kip Warner
] [\c!command=\PlaceSection, \c!before=\blank, \c!style=\bsa] \def\PlaceSection#1#2% {\goodbreak \vbox {\localheadsetup \begstrut \inleftmargin{\hbox to \leftmarginwidth{\hss#1\hss}}% #2}} \setupcaptions[width=14cm,align=right] \setMPtext{text}{some test text

Re: [NTG-context] Problem with chem module

2011-06-18 Thread Kip Warner
% {\goodbreak \vbox {\localheadsetup \begstrut \inleftmargin{\hbox to \leftmarginwidth{\hss#1\hss}}% #2}} \setupcaptions[width=14cm,align=right] \setMPtext{text}{some test text} \startusableMPgraphic{text} picture r ; r := image ( graphictext \MPstring{text

[NTG-context] heading in margin + paragraph starting with float

2010-12-07 Thread Philipp Gesang
sizes of the float and grid typesetting activated an additional line is inserted. How can I suppress those? ··8· \define[2]\SectionCommand {\inleftmargin{#2}} \setuphead [section] [ alternative=text, style=bold, command

Re: [NTG-context] BUG? Strange behavior (vertical space added!!!) with accentuated letters (was \inmargin / full textwidth line interaction)

2010-11-27 Thread Otared Kavian
[subsection][style=,command=\SubsectionCommand] \define[2]\SectionCommand {\inleftmargin{\leftaligned{\structuretitle}}% \blackrule [ width=\textwidth, height=+.3\lineheight, depth=-.2\lineheight]} \define[2]\SubsectionCommand {\vbox\bgroup \inleftmargin{\leftaligned{\em

Re: [NTG-context] \inmargin / full textwidth line interaction (was Toward the use of inleft…)

2010-11-26 Thread Wolfgang Schuster
] \setuphead[subsection][style=,command=\SubsectionCommand] \define[2]\SectionCommand {\inleftmargin{\leftaligned{\structuretitle}}% \blackrule [ width=\textwidth, height=+.3\lineheight, depth=-.2\lineheight]} \define[2]\SubsectionCommand {\vbox\bgroup \inleftmargin

[NTG-context] BUG? Strange behavior (vertical space added!!!) with accentuated letters (was \inmargin / full textwidth line interaction)

2010-11-26 Thread Renaud AUBIN
, footer=0mm, footerdistance=0mm, margindistance=0mm, height=middle, width=middle, grid=yes] \setuppagenumbering[state=stop] \setuphead[section] [style=,command=\SectionCommand] \setuphead[subsection][style=,command=\SubsectionCommand] \define[2]\SectionCommand {\inleftmargin

Re: [NTG-context] BUG? Strange behavior (vertical space added!!!) with accentuated letters (was \inmargin / full textwidth line interaction)

2010-11-26 Thread Renaud AUBIN
{\inleftmargin{\leftaligned{\structuretitle}}% \blackrule [ width=\textwidth, height=+.3\lineheight, depth=-.2\lineheight]} \define[2]\SubsectionCommand {\vbox\bgroup \inleftmargin{\leftaligned{\em\structureuservariable{date}}}% {\bfa\structuretitle

Re: [NTG-context] heading in margin + grid

2010-11-21 Thread Wolfgang Schuster
Am 21.11.2010 um 12:28 schrieb Philipp Gesang: Dear fellow Contexters, there are some subheadings I’d like to place in the margin approximately like that: \setuplayout[grid=yes]\showgrid \define[2]\SectionCommand {\inleftmargin{#2}} \setuphead [section] [alternative=text, style

Re: [NTG-context] heading in margin + grid

2010-11-21 Thread Philipp Gesang
{\inleftmargin{#2}} \setuphead [section] [alternative=text, style=bold, color=red, command=\SectionCommand, distance=0pt, before={\blank[nowhite]}] \starttext \dorecurse{10} {\section{Knuth} \input knuth\par} \stoptext Wolfgang Works like a charm, many, many

Re: [NTG-context] Inleft text not verticaly aligned

2008-10-18 Thread Peter Rolf
the following placebo... ;) \starttext \showframe \showgrid \def\CommandQS#1#2% {\inleftmargin{\bf\strut\currentheadnumber}} \setuphead[section] [alternative=text, command=\CommandQS, ] \starttext \section{} \ruledhbox{$\displaystyle {4 \over \displaystyle {1 \over 3}}$.} \stoptext btw

Re: [NTG-context] [Fwd: Line numbering]

2006-09-07 Thread Hans Hagen
proof of concept: \newcounter\TestNumber \let\normaldodoplacelinenumber\dodoplacelinenumber \def\dodoplacelinenumber {\doglobal\increment\TestNumber \xypos{lnm:\TestNumber}% \ifdim\MPx{lnm:\TestNumber}.5\makeupwidth \swapmacros\inleftmargin\inrightmargin \fi

Re: [NTG-context] bookmarks, accented caracters, breaking URLs

2003-12-18 Thread Hans Hagen
At 20:07 17/12/2003, you wrote: Hello, (first: Thanks, Hans for the answer, I added some space in \unknownreference and a $\blacktriangleright$, but otherwise I won't miss any reference anymore; fingers crossed.) an option is to move the mark in the margin, \inleftmargin{...} or something